import random

def generate_ip_test_string():
 
    length = random.randint(4, 12) 
    return ''.join(str(random.randint(0, 9)) for _ in range(length))

if __name__ == "__main__":
 
    test_string = generate_ip_test_string()
    print("测试字符串 =", test_string)
    
 
    test_cases = [
        "25525511135",   
        "0000",          
        "1111",         
        "010010",       
        "101023"     ]   
    
    print("\n特定测试用例:")
    for i, case in enumerate(test_cases, 1):
        print(f"测试用例{i} =", case)
